Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug fixing: Repo initialization in Dependencydiff #2070

Closed
wants to merge 67 commits into from

Conversation

aidenwang9867
Copy link
Contributor

What kind of change does this PR introduce?

Fixing a bug introduced in PR #2046 where the ghRepo type of (clients.Repo) was created wrongly by the input repoURI rather than the dependency repo to be checked by scorecard.

What is the current behavior?

The Dependencydiff module uses the input repo to initialize the ghRepo to run the scorecard check, resulting in all of the dependencies having the same check results and scores (of the input repo).

What is the new behavior (if this is a feature change)?**

The module will correctly initialize ghRepo using the dependency's srcRepo URI.

  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

Fixes #2046

Special notes for your reviewer

Does this PR introduce a user-facing change?

For user-facing changes, please add a concise, human-readable release note to
the release-note

(In particular, describe what changes users might need to make in their
application as a result of this pull request.)

NONE

@aidenwang9867 aidenwang9867 temporarily deployed to integration-test July 18, 2022 21:19 Inactive
@laurentsimon
Copy link
Contributor

need rebase?

@github-actions
Copy link

Integration tests success for
[155cfc6]
(https://github.com/ossf/scorecard/actions/runs/2693552112)

@codecov
Copy link

codecov bot commented Jul 18, 2022

Codecov Report

Merging #2070 (259fa98) into main (10681da) will decrease coverage by 0.09%.
The diff coverage is 17.64%.

@@            Coverage Diff             @@
##             main    #2070      +/-   ##
==========================================
- Coverage   42.11%   42.01%   -0.10%     
==========================================
  Files          92       92              
  Lines        7551     7556       +5     
==========================================
- Hits         3180     3175       -5     
- Misses       4122     4132      +10     
  Partials      249      249              

@aidenwang9867 aidenwang9867 temporarily deployed to integration-test July 18, 2022 21:55 Inactive
@aidenwang9867 aidenwang9867 temporarily deployed to integration-test July 18, 2022 22:07 Inactive
@aidenwang9867
Copy link
Contributor Author

aidenwang9867 commented Jul 18, 2022

used the wrong branch as the base
close this PR to create a new one

@aidenwang9867 aidenwang9867 deleted the depdiff_p3 branch July 18, 2022 22:13
@github-actions
Copy link

Integration tests success for
[a776c2c]
(https://github.com/ossf/scorecard/actions/runs/2693728289)

@github-actions
Copy link

Integration tests success for
[259fa98]
(https://github.com/ossf/scorecard/actions/runs/2693783974)

@aidenwang9867 aidenwang9867 restored the depdiff_p3 branch July 18, 2022 22:42
@aidenwang9867 aidenwang9867 deleted the depdiff_p3 branch July 18, 2022 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants